﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2-7.aspx.cs" Inherits="Example.WebForm2_7" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title>ListBox示例</title>
</head>
<body>
  <form id="form1" runat="server">
    <div>
      ListBox示例<hr />
      请选择您喜欢的水果：<asp:Label ID="lblView" runat="server"></asp:Label><br />
      <asp:ListBox ID="listFruit" runat="server" Height="93px" SelectionMode="Multiple" AutoPostBack="true"
        OnSelectedIndexChanged="listFruit_SelectedIndexChanged" Width="99px">
        <asp:ListItem>西瓜</asp:ListItem>
        <asp:ListItem>苹果</asp:ListItem>
        <asp:ListItem>香蕉</asp:ListItem>
        <asp:ListItem>葡萄</asp:ListItem>
        <asp:ListItem>橙子</asp:ListItem>
      </asp:ListBox>


    </div>
  </form>
</body>
</html>
